﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DAL;
using CommontLibrary;
public partial class Admin_EventHocVienUpdate : System.Web.UI.Page
{
    #region "Member variables"
    Control ctModule = null;
    DALevel objLevel;
    DAChucNang objChucNang;
    DANguoidung objNguoidung;
    #endregion
    #region "Parametter variables"
    // Ham lay Bind du lieu
    public SqlConnection ConnectionView
    {
        get
        {
            object obj2 = this.ViewState["ConnectionView"];
            if (obj2 != null)
            {
                return (SqlConnection)obj2;
            }
            return null;
        }
        set
        {
            this.ViewState["ConnectionView"] = value;
        }
    }
    #endregion
    #region "Evernt Method"
    private void loadDataAccess()
    {
        SqlConnection sqlConnec = ConnectData.getConnection();
        objNguoidung = new DANguoidung(sqlConnec);
        objChucNang = new DAChucNang(sqlConnec);
        objLevel = new DALevel(sqlConnec);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        loadDataAccess();
        if (Request.QueryString["EventCreate"] != null)
        {
            try
            {
                ctModule = LoadControl("UserControl\\HocVien\\insertLevelA.ascx");
                if (ctModule != null)
                {
                    tcCenter.Controls.Add(ctModule);
                }
            }
            catch (Exception ex)
            {
            }
        }
    }
    #endregion
}
